package com.barbeque.mall.controller;

import com.barbeque.mall.bean.BasePageInfo;
import com.barbeque.mall.bean.BaseRespVo;
import com.barbeque.mall.bean.param.CommonData;
import com.barbeque.mall.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 苏东宇
 * @since 2022/07/18 14:07
 */
@RestController
@RequestMapping("admin/log")
public class SysLogController {

    @Autowired
    SysLogService sysLogService;

    @RequestMapping("list")
    public BaseRespVo getLogList(BasePageInfo basePageInfo, String name){
        CommonData logList = sysLogService.getLogList(basePageInfo, name);
        return BaseRespVo.ok(logList);
    }
}
